<?php

class xineForumMenu {
	private $menuItems=array();
	
	public function add ($show_name, $link) {
		$this->menuItems[$show_name] = $link;
	}
	
	public function addArray ($data=array()) {
		$this->menuItems = array_merge($this->menuItems, $data['menuItems']);
	}
	
	public function get () {
		$return = '';
		
		foreach($this->menuItems as $show => $link) {
			$return .= '<a href="'.xine::$config['siteUrl'].$link.'">'.$show.'</a>'."\n";
		}
		
		return $return;
	}
}